package com.atguigu.yygh;

import com.atguigu.yygh.common.result.Result;
import com.atguigu.yygh.model.hosp.Schedule;
import com.atguigu.yygh.model.user.Patient;
import com.atguigu.yygh.vo.order.SignInfoVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-hosp")
@Repository
public interface HospitalFeignClient {
    @ApiOperation(value = "查询排班详细信息")
    @GetMapping("/admin/hosp/schedule/getScheduleByScheduleId/{scheduleId}")
    public Result getScheduleByScheduleId(@PathVariable String scheduleId);

    @ApiOperation(value = "查询排班详细信息")
    @RequestMapping(value="/admin/hosp/schedule/saveSchedule" ,method= RequestMethod.POST)
    public Result saveSchedule(@RequestBody Schedule schedule);

    @ApiOperation("分页查询医院设置")
    @PostMapping("/admin/hosp/hospitalSet/getSignInfoVo/{hostCode}")
    public SignInfoVo getSignInfoVo(@PathVariable String hostCode);
}